package com.bwie.controller;

import com.bwie.service.ProvinceService;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author : LeiMingkun
 * @date : 2024-08-07 10:36
 * @description : ProvinceController
 **/
@RestController
@RequestMapping("/province/province")
public class ProvinceController {
    @Resource
    private ProvinceService provinceService;
    @RequestMapping("/getProvinceList/{id}")
    public R getProvinceList(@PathVariable(name = "id") Integer id){
        return provinceService.getProvinceList(id);
    }
}